package com.ruoyi.system.service.impl;

import java.util.List;
import java.util.Map;

import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AdminLuckyRecordMapper;
import com.ruoyi.system.domain.AdminLuckyRecord;
import com.ruoyi.system.service.IAdminLuckyRecordService;

/**
 * 澳洲开奖记录管理Service业务层处理
 *
 * @author ruoyi
 * @date 2021-06-20
 */
@Service
public class AdminLuckyRecordServiceImpl implements IAdminLuckyRecordService
{
    @Autowired
    private AdminLuckyRecordMapper adminLuckyRecordMapper;

    /**
     * 查询澳洲开奖记录管理
     *
     * @param recordId 澳洲开奖记录管理ID
     * @return 澳洲开奖记录管理
     */
    @Override
    public AdminLuckyRecord selectAdminLuckyRecordById(Long recordId)
    {
        return adminLuckyRecordMapper.selectAdminLuckyRecordById(recordId);
    }

    @Override
    public List<AdminLuckyRecord> selectAdminLuckyRecordLimit() {
        return adminLuckyRecordMapper.selectAdminLuckyRecordLimit();
    }

    @Override
    public AdminLuckyRecord selectAdminPrizeRecordByPrizeTime() {
        return adminLuckyRecordMapper.selectAdminPrizeRecordByPrizeTime();
    }

    @Override
    public AdminLuckyRecord selectAdminPrizeRecordByState() {
        return adminLuckyRecordMapper.selectAdminPrizeRecordByState();
    }

    @Override
    public AdminLuckyRecord selectAdminPrizeRecordByPrizeTimeForMax() {
        return adminLuckyRecordMapper.selectAdminPrizeRecordByPrizeTimeForMax();
    }

    @Override
    public AdminLuckyRecord selectAdminPrizeRecordByPrizeTimeForMaxAndState() {
        return adminLuckyRecordMapper.selectAdminPrizeRecordByPrizeTimeForMaxAndState();
    }

    @Override
    public AdminLuckyRecord selectAdminPrizeRecordByLotteryNumber() {
        return adminLuckyRecordMapper.selectAdminPrizeRecordByLotteryNumber();
    }

    /**
     * 查询澳洲开奖记录管理列表
     *
     * @param adminLuckyRecord 澳洲开奖记录管理
     * @return 澳洲开奖记录管理
     */
    @Override
    public List<AdminLuckyRecord> selectAdminLuckyRecordList(AdminLuckyRecord adminLuckyRecord)
    {
        return adminLuckyRecordMapper.selectAdminLuckyRecordList(adminLuckyRecord);
    }

    @Override
    public Map<String, Object> selectAdminPrizeRecordCount() {
        return adminLuckyRecordMapper.selectAdminPrizeRecordCount();
    }

    /**
     * 新增澳洲开奖记录管理
     *
     * @param adminLuckyRecord 澳洲开奖记录管理
     * @return 结果
     */
    @Override
    public int insertAdminLuckyRecord(AdminLuckyRecord adminLuckyRecord)
    {
        adminLuckyRecord.setCreateTime(DateUtils.getNowDate());
        return adminLuckyRecordMapper.insertAdminLuckyRecord(adminLuckyRecord);
    }

    @Override
    public AdminLuckyRecord selectAdminPrizeRecordByPeriod(AdminLuckyRecord adminLuckyRecord) {
        return adminLuckyRecordMapper.selectAdminPrizeRecordByPeriod(adminLuckyRecord);
    }

    /**
     * 修改澳洲开奖记录管理
     *
     * @param adminLuckyRecord 澳洲开奖记录管理
     * @return 结果
     */
    @Override
    public int updateAdminLuckyRecord(AdminLuckyRecord adminLuckyRecord)
    {
        adminLuckyRecord.setUpdateTime(DateUtils.getNowDate());
        return adminLuckyRecordMapper.updateAdminLuckyRecord(adminLuckyRecord);
    }

    @Override
    public List<AdminLuckyRecord> selectLuckyPrizeRecordListToAgentFifty(AdminLuckyRecord adminLuckyRecord) {
        return adminLuckyRecordMapper.selectLuckyPrizeRecordListToAgentFifty(adminLuckyRecord);
    }

    /**
     * 批量删除澳洲开奖记录管理
     *
     * @param recordIds 需要删除的澳洲开奖记录管理ID
     * @return 结果
     */
    @Override
    public int deleteAdminLuckyRecordByIds(Long[] recordIds)
    {
        return adminLuckyRecordMapper.deleteAdminLuckyRecordByIds(recordIds);
    }

    /**
     * 删除澳洲开奖记录管理信息
     *
     * @param recordId 澳洲开奖记录管理ID
     * @return 结果
     */
    @Override
    public int deleteAdminLuckyRecordById(Long recordId)
    {
        return adminLuckyRecordMapper.deleteAdminLuckyRecordById(recordId);
    }
}
